<?php
class Model_Resource_Phone extends Zend_Db_Table
{
    protected $_name = 'phone_entities';

    /**
     * Fetch row by phone
     *
     * @param  $phone
     * @return null|Zend_Db_Table_Row_Abstract
     */
    public function fetchRowByPhone($phone)
    {
        return $this->fetchRow('phone = ' . (int) $phone);
    }
}

